home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / c / cxref-1.001 / cxref-1~ / cxref / cpp / Makefile < prev    next >
Encoding:
Makefile  |  1996-02-24  |  1.7 KB  |  79 lines

  1. # $Header: /home/amb/cxref/cpp/RCS/Makefile 1.6 1996/02/24 14:50:32 amb Exp $
  2. #
  3. # C Cross Referencing & Documentation tool. Version 1.0
  4. #
  5. # CPP Makefile.
  6. #
  7. # Written by Andrew M. Bishop
  8. #
  9. # This file Copyright 1995,96 Andrew M. Bishop
  10. # It may be distributed under the GNU Public License, version 2, or
  11. # any higher version.  See section COPYING of the GNU Public license
  12. # for conditions under which this file may be redistributed.
  13. #
  14.  
  15. OBJ_FILES=cccp.o cexp.o version.o
  16.  
  17. # Read the README file for a description of these.
  18. # For me using i486 Linux
  19. INCLUDE_DIR1=/usr/local/include
  20. INCLUDE_DIR2=/usr/i486-linux/include
  21. INCLUDE_DIR3=/usr/lib/gcc-lib/i486-linux/2.5.8/include
  22.  
  23. # For me using sparc SunOS 4.1
  24. #INCLUDE_DIR1=/usr/local/include
  25. #INCLUDE_DIR2=/valid/gnu/gcc-2.6.3/lib/gcc-lib/sparc-sun-sunos4.1.3/2.6.3/include
  26. #INCLUDE_DIR3=/valid/gnu/gcc-2.6.3/sparc-sun-sunos4.1.3/include
  27.  
  28. # For me using sparc Solaris 2.3
  29. #INCLUDE_DIR1=/usr/local/include
  30. #INCLUDE_DIR2=/home/gnu/gcc-2.5.7/sparc-sun-solaris/include
  31. #INCLUDE_DIR3=/home/gnu/gcc-2.5.7/lib/gcc-lib/sparc-sun-solaris/2.5.7/include
  32.  
  33. INCLUDES=-Iconfig
  34. LIB=
  35.  
  36. CC=gcc
  37. CFLAGS=-O2
  38.  
  39. COMPILE=$(CC) -c $(CFLAGS)
  40.  
  41. LINK=$(CC) 
  42.  
  43. YACC=bison -y
  44.  
  45. ########
  46.  
  47. cxref-cpp : $(OBJ_FILES)
  48.     $(LINK) $(OBJ_FILES) -o $@ $(LIB)
  49.  
  50. ########
  51.  
  52. cexp.c : cexp.y
  53.     $(YACC) $<
  54.     @mv y.tab.c cexp.c
  55.  
  56. ####
  57.  
  58. cccp.o: cccp.c config.h tm.h pcp.h
  59.     $(COMPILE) -w $< -o $@ $(INCLUDES) \
  60.       -DLOCAL_INCLUDE_DIR=\"$(INCLUDE_DIR1)\" \
  61.       -DTOOL_INCLUDE_DIR=\"$(INCLUDE_DIR2)\" \
  62.       -DGCC_INCLUDE_DIR=\"$(INCLUDE_DIR3)\" \
  63.       -DGPLUSPLUS_INCLUDE_DIR=\".\"
  64.  
  65. ####
  66.  
  67. %.o:%.c
  68.     $(COMPILE) -w $< -o $@ $(INCLUDES)
  69.  
  70. version.o    : version.c
  71. cexp.o       : cexp.c config.h tm.h
  72.  
  73. ########
  74.  
  75. clean :
  76.     -rm -f core *.o *~ y.tab.c
  77.  
  78. ########
  79.